package com.aabte.design.pattern.structural.decorator.v2;

public class EggDecorator extends BattercakeDecorator {

    public EggDecorator(AbstractBattercake battercake) {
        super(battercake);
    }

    @Override
    public String getDesc() {
        return battercake.getDesc()+ " 加一个鸡蛋";
    }

    @Override
    public int getCost() {
        return battercake.getCost() + 2;
    }
}
